s = 'aabbaaccaaddaaee'

print s.count('a')
